import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import NProgress from 'nprogress' // 引入nprogress插件
import 'nprogress/nprogress.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import util from './utils/util'

import moment from 'moment'
import locale from 'ant-design-vue/lib/locale-provider/zh_CN'
import 'moment/locale/zh-cn'
moment.locale('zh-cn')

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(util)
Vue.use(Antd)
Vue.use(ElementUI);

Vue.config.productionTip = false

router.beforeEach((to, from, next) => {
  NProgress.start()
  next()
})
router.afterEach(() => {
  NProgress.done()
})


// import tinymce from 'tinymce'
// import VueTinymce from '@packy-tang/vue-tinymce'
// /* 富文本输入器 */
// import 'tinymce/skins/content/default/content.min.css'
// import 'tinymce/skins/ui/oxide/skin.min.css'
// // import './utils/tinymce/langs/skin.min.css'
// // import 'tinymce/skins/ui/oxide/content.min.css'
// //主题
// import 'tinymce/themes/silver'
// //插件
// import 'tinymce/plugins/link' //链接插件
// import 'tinymce/plugins/image' //图片插件
// import 'tinymce/plugins/media' //媒体插件
// import 'tinymce/plugins/table' //表格插件
// import 'tinymce/plugins/lists' //列表插件
// import 'tinymce/plugins/quickbars' //快速栏插件
// import 'tinymce/plugins/fullscreen' //全屏插件

// import 'tinymce/icons/default/icons'

// //本地化
// import './utils/tinymce/langs/zh_CN.js'

// Vue.prototype.$tinymce = tinymce
// Vue.use(VueTinymce)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
